home *** CD-ROM | disk | FTP | other *** search
/ Mac Mania 2 / MacMania 2.toast / Demo's / Tools&Utilities / Programming / Curses / MAKEFILE < prev    next >
Encoding:
Text File  |  1989-04-15  |  1.5 KB  |  54 lines  |  [TEXT/R*ch]

  1. ################################################################################
  2. #                                                                              #
  3. #    Makefile for curses                                                    #
  4. #    (Now compatible with MAKE that comes with TURBO C)                     #
  5. #                                                                              #
  6. ################################################################################
  7.  
  8. #### INCDIR    Where the curses include files are kept.
  9. #### CC        Command to execute C compiler
  10. #### CFLAGS    Flags to pass to C compiler.
  11. #### LIB    Command to execute the librarian.
  12. #### LFLAGS    Flags to pass to librarian.
  13.  
  14. INCDIR        = .
  15.  
  16. CC        = tcc
  17. LIB        = tlib
  18.  
  19. CFLAGS        = -ms -O -v
  20. LFLAGS        = /c
  21.  
  22. #LFLAGS        = /c /e
  23. #CFLAGS        = -ms -O -v-
  24.  
  25. #### Note:     For some reason, using the '/e' switch in TLIB prevents
  26. ####        debugging information from being included in the library.
  27. ####        If you are using the '-v' flag in CFLAGS, you should also
  28. ####        set LFLAGS to be "/c" and not "/c /e".
  29.  
  30. all:        lib
  31.  
  32. lib:        curses.lib
  33.         @echo Library is up to date
  34.  
  35. t:        t.exe
  36. t.obj:        t.c $(INCDIR)\curses.h
  37.  
  38. t.exe:        t.obj curses.lib
  39.         $(CC) $(CFLAGS) t.obj curses.lib
  40.  
  41. curses.obj:    curses.c $(INCDIR)\curses.h
  42. v_msdos.obj:    v_msdos.c $(INCDIR)\curses.h
  43.  
  44. curses.lib:    curses.obj v_msdos.obj
  45.         @rm -f curses.lib
  46.         $(LIB) $(LFLAGS) curses.lib +curses.obj \
  47.                         +v_msdos.obj
  48.  
  49. .c.obj:
  50.         $(CC) $(CFLAGS) -c $<
  51.  
  52. clean:
  53.         rm -f *.obj *.map *.exe *.bak curses.lib
  54.